package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.ChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

import java.util.List;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult<List<WmChannel>> findAll();


    ResponseResult<List<WmChannel>> myList(ChannelDto channelDto);

    ResponseResult<String> del(Integer id);

    ResponseResult<String> mySave(WmChannel channel);

    ResponseResult<String> myUpdate(WmChannel channel);
}
